package com.kikcn.demo.domain;


import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * User: Administrator
 * Date: 2015/2/17
 * Time: 10:02
 */
@Entity
@Table(name = "t_article")
public class Article extends  Base implements Serializable {


    @Column
    @NotBlank(message="name can not be null" )
    private String name;
    @Column
    private Date createTime;
    @Column
    private Date lastEditTime;
    @Column
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastEditTime() {
        return lastEditTime;
    }

    public void setLastEditTime(Date lastEditTime) {
        this.lastEditTime = lastEditTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
